﻿using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Testing;
using wwl.WebApi;

namespace wwl.Test
{
  public class TestWebApplicationFactory : WebApplicationFactory<Program>
  {
    protected override void ConfigureWebHost(IWebHostBuilder builder)
    {
      builder.UseEnvironment("Test");

      builder.ConfigureServices(services =>
      {
        // 可以在这里配置测试专用的服务
      });
    }
  }
}